let g:python_host_skip_check = 1
let g:python_host_prog = '/usr/bin/python'
let g:python3_host_skip_check = 1
let g:python3_host_prog = '/usr/bin/python3'

" 设置空白字符的视觉提示
set list listchars=extends:❯,precedes:❮,tab:▸\ ,trail:˽

" 高亮当前行
set cursorline

" 显示行号
set number 
set cursorline	" 突出显示当前行
set relativenumber	" 相对行号


" 主题
" colorscheme deus
set termguicolors " 全色
hi Normal ctermfg=252 ctermbg=none	" 透明

" UTF-8 编码
set encoding=utf-8
set termencoding=utf-8
set formatoptions+=mM
set fencs=utf-8,gbk

" 语法高亮
syntax enable
syntax on

set smartindent	" 开启新行时使用智能自动缩进
set ts=4
set softtabstop=4
set shiftwidth=4
set expandtab

"let &t_ul=''


set laststatus=2 " 显示状态栏 (默认值为 1, 无法显示状态栏)
set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %c:%l/%L%)\ 
" 设置在状态行显示的信息
set foldenable " 开始折叠
"set foldmethod=syntax " 设置语法折叠
set foldcolumn=0 " 设置折叠区域的宽度
setlocal foldlevel=1 " 设置折叠层数为
" set foldclose=all " 设置为自动关闭折叠 
" nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
" 用空格键来开关折叠

set incsearch " 输入搜索内容时就显示搜索结果
set hlsearch " 搜索时高亮显示被找到的文本


set mouse=nv
"set tabstop=2
"set shiftwidth=2
"set showcmd
"set noswapfile
"set showmatch
"set ruler
"set wrap
set noshowmode
set showtabline=1
set smartcase
set notimeout
"set ttimeoutlen=0
"set lazyredraw
"set visualbell
"set history=800
"set scrolloff=5
"set hlsearch
"set incsearch
"set list
"set listchars=tab:\┆\ ,trail:-
hi CursorLine ctermbg=DarkMagenta ctermfg=white guibg=DarkCyan guifg=white
"set viewoptions=cursor,folds,slash,unix
"set wildmenu
"set wildmode=full
"set wildchar=<Tab>
"set guicursor=n:block,i:ver1,v:block,r:block,c:block,ci:block,cr:block
"set path=.,/usr/include,/usr/local/include/
"set foldmethod=marker
"set foldlevelstart=99
"set colorcolumn=80
"au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
"let g:mapleader = "\<Space>"



" unicode symbols
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
"let g:airline_symbols.crypt = '🔒'
"let g:airline_symbols.linenr = '☰'
"let g:airline_symbols.linenr = '␊'
"let g:airline_symbols.linenr = '␤'
"let g:airline_symbols.linenr = '¶'
"let g:airline_symbols.maxlinenr = ''
"let g:airline_symbols.maxlinenr = '㏑'
"let g:airline_symbols.branch = '⎇'
"let g:airline_symbols.paste = 'ρ'
"let g:airline_symbols.paste = 'Þ'
"let g:airline_symbols.paste = '∥'
"let g:airline_symbols.spell = 'Ꞩ'
"let g:airline_symbols.notexists = 'Ɇ'
"let g:airline_symbols.whitespace = 'Ξ'
" powerline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
"let g:airline_symbols.branch = ''
"let g:airline_symbols.readonly = ''
"let g:airline_symbols.linenr = '☰'
"let g:airline_symbols.maxlinenr = ''

